package cn.lixin.hrm.client;

//import cn.lixin.hrm.CourseTypeFallBackFactory;
import cn.lixin.hrm.doc.CourseDoc;
import cn.lixin.hrm.query.CourseDocQuery;
import cn.lixin.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

//,fallbackFactory = CourseTypeFallBackFactory.class
@FeignClient(value = "ES-SERVER")
@RequestMapping("/courseDoc")
public interface CourseTypeFeignClient {
/*    @PostMapping("/addCourseDoc")
    AjaxResult addCourseDoc(@RequestBody CourseDoc courseDoc);

    @PostMapping("/delCourseDoc/{id}")
    AjaxResult delCourseDoc(@PathVariable Long id);
*/
    @PostMapping("/searchQuery")
    AjaxResult searchQuery(@RequestBody CourseDocQuery docQuery);


}
